package com.hm.pan.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hm.pan.mapper.AdUserMapper;
import com.hm.pan.model.User;
import com.hm.pan.service.AdUserService;

@Service
public class AdUserServiceImpl implements AdUserService {
	
	@Resource
	private AdUserMapper adUserMapper;

	@Override
	public List<User> findAll() {
		return adUserMapper.findAll();
	}

	@Override
	public User findByName(String userName) {
		return adUserMapper.findByName(userName);
	}

	@Override
	public List<User> findByPage(Integer page) {
		return adUserMapper.findByPage(page);
	}

	@Override
	public Object count() {
		return adUserMapper.count();
	}

	
}
